package com.hpeng.daily.dao.impl;

import org.springframework.stereotype.Component;

import com.hpeng.daily.dao.AssetCardBackUpDao;

import com.hpeng.sys.model.AssetCardBackUp;
import com.hpeng.util.GenericDaoImpl;
import com.hpeng.util.Pagination;

@Component("AssetCardBackUpDao")
public class AssetCardBackUpDaoImpl extends GenericDaoImpl<AssetCardBackUp, String> 
		implements AssetCardBackUpDao{


	public Pagination<AssetCardBackUp> getPagination(int pageNumber,
			String[] hql, String order) {
		Pagination<AssetCardBackUp> pagination = null;
		StringBuffer sb = new StringBuffer();
		try {
			for (String str : hql) {
				sb.append(str);
			}
			pagination = this.getPagination(sb.toString() + order, null, pageNumber);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return pagination;
	}

}
